package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 药品库存对象 pharmacy
 * 
 * @author 墨白
 * @date 2024-08-11
 */
public class Pharmacy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 药品编号 */
    @Excel(name = "药品编号")
    private Long medicineId;

    /** 药品名称 */
    @Excel(name = "药品名称")
    private String medicineName;

    /** 药品库存 */
    @Excel(name = "药品库存")
    private String medicineStock;

    /** 药品生产日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "药品生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date medicineDate;

    /** 药品保质期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "药品保质期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date medicineOutdate;

    public void setMedicineId(Long medicineId) 
    {
        this.medicineId = medicineId;
    }

    public Long getMedicineId() 
    {
        return medicineId;
    }
    public void setMedicineName(String medicineName) 
    {
        this.medicineName = medicineName;
    }

    public String getMedicineName() 
    {
        return medicineName;
    }
    public void setMedicineStock(String medicineStock) 
    {
        this.medicineStock = medicineStock;
    }

    public String getMedicineStock() 
    {
        return medicineStock;
    }
    public void setMedicineDate(Date medicineDate) 
    {
        this.medicineDate = medicineDate;
    }

    public Date getMedicineDate() 
    {
        return medicineDate;
    }
    public void setMedicineOutdate(Date medicineOutdate) 
    {
        this.medicineOutdate = medicineOutdate;
    }

    public Date getMedicineOutdate() 
    {
        return medicineOutdate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("medicineId", getMedicineId())
            .append("medicineName", getMedicineName())
            .append("medicineStock", getMedicineStock())
            .append("medicineDate", getMedicineDate())
            .append("medicineOutdate", getMedicineOutdate())
            .toString();
    }
}
